<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class SchoolArticleStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'title' => 'bail|required|string',
            'province' => 'bail|nullable|string',
            'schoolId' => 'bail|nullable|integer',
            'image' => 'bail|nullable|string',
            'abs' => 'bail|nullable|string',
            'source' => 'bail|nullable|string',
            'type' => 'bail|required|in:1,2',
            'content' => 'bail|nullable|string',
            'created_at' => 'bail|nullable'
        ];
    }
}
